#include "stdafx.h"
#include "ckOpInput.h"
#include "ckArgument.h"

namespace ck
{
	OpInput::OpInput()
	{

	}

	OpInput::~OpInput()
	{
		Argument* pArg = NULL;
		std::vector<Argument*>::iterator iter;
		for (iter = m_args.begin(); iter != m_args.end(); iter++)
		{
			pArg = *iter;
			delete pArg;
		}
		m_args.clear();
	}

	z_uint32 OpInput::GetArgCount()
	{
		return m_args.size();
	}

	Argument* OpInput::GetArgument(z_uint32 i)
	{
		if (i >= m_args.size())
		{
			return NULL;
		}
		return m_args[i];
	}
}

